<%@ page language="java" pageEncoding="utf8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>AccountList</title>
		<link href="tablecloth/tablecloth.css" rel="stylesheet"
			type="text/css" media="screen" />
		<script type="text/javascript" src="tablecloth/tablecloth.js"></script>
		<script type="text/javascript" src="js/splitpage.js"></script>
<link href="css/splitpage.css" rel="stylesheet"
			type="text/css" media="screen" />
	    <style type="text/css">
<!--
.STYLE1 {
	font-family: "宋体";
	font-size: small;
	color: #999999;
}
.STYLE2 {font-size: small}
-->
        </style>
</head>
<body>
		<div align="center">
			<img src="image/temp123.jpg" alt="首页" width="100%" height="50"
				align="middle" onClick="window.location.href='redirect.do?method=welcome'">
		</div>
		
		
		<table width="100%" border="0" style="">
          <tr>
            <td width="50%"><span class="STYLE1">当前位置—<a href="redirect.do?method=welcome">首页</a>—用户列表</span></td>
            <td width="50%"><div align="right" class="STYLE2">
			<a href="redirect.do?method=welcome">首页</a>&nbsp;<a href="logout.do">退出 </a>
		</div></td>
          </tr>
        </table>
		<table cellspacing="0" cellpadding="0">
			<tr>
				<th>
					UserName
				</th>
				<th >
					Email
				</th>
				<th>
					Group
				</th>
				<th>
					CreateDate
				</th>
				<th>
					LastLoginIP
				</th>
				<th>
					LastLoginDate
				</th>
				<th>
					Edit
				</th>
			</tr>
			<c:forEach var="dtoList" items="${map.dtoList}">
				<tr>
					<td>
						<c:out value="${dtoList.username}" />
					</td>
					<td>
						<c:out value="${dtoList.email}" />
					</td>
					<td>
						<c:out value="${dtoList.accountGroup}" />
					</td>
					<td>
						<c:out value="${dtoList.createDate}" />
					</td>
					<td>
						<c:out value="${dtoList.lastLoginIp}" />
					</td>
					<td>
						<c:out value="${dtoList.lastLoginDate}" />
					</td>
					<td>
						<img align="middle" title="删除" src="image/btn_delete.jpg" onClick="window.location.href='mgraccount.do?method=deleteAccount&accountId=${dtoList.id}&index=${map.index}'" style="cursor:pointer">
						<img align="middle" title="禁用" src="image/btn_lock.jpg" onClick="window.location.href='mgraccount.do?method=disableAccount&accountId=${dtoList.id}&index=${map.index}'" style="cursor:pointer">
					</td>
				</tr>
			</c:forEach>
		</table>
		<div id="pager" style="padding-top:10px;padding-bottom:10px;background-color:#328aa4;"></div>
		<script type="text/javascript">
			var pager = new PagerView('pager');
			pager.itemCount = "${map.totalCount}";
			pager.size = "${map.limit}";
			pager.index = "${map.index}";
			pager.onclick = function(index){
				window.location.href = "mgraccount.do?method=accountList&index="+index;
			};
			pager.render();
		</script>
					
		
</body>
</html>
